﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfCommGoodsBrand.aspx.cs"
    Inherits="msBsc.WebUi.wfCommGoodsBrand" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server">
    <title>品牌维护</title> 
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/themes/Style1/StyleQt.css" />
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,themes/Style1/jsDealer.js"
        type="text/javascript"></script>
    <!--head fix rgn-->
    <style type="text/css">
        
    </style>
    <script type="text/javascript">
        $(window).load(function () {
            $.ploadFile("Grid", function (script, textStatus) {
                initGrid1();
            });
            $.ploadFile("layer", function (script, textStatus) {
                //                layer.load('加载中'); 
            });
        });
        function initGrid1() {
            var colsOption = [
            { id: 'chk', isCheckColumn: true, filterable: false, exportable: false },
            { id: 'BRAND_ID', hidden: true, filterable: false, exportable: false },
            { id: 'BRAND_NME', header: "品牌中文名称", width: 170  },
            { id: 'BRAND_NME_EN', header: "品牌英文名称", width: 170 },
            { id: 'LOGO_IMG_URL', header: "LOGO地址", width: 103,   renderer: function (value, record, columnObj, grid, colNo, rowNo) {
                if (record.LOGO_IMG_URL != "") {
                    return "<img src='" + record.LOGO_IMG_URL + "' style='width:100px;height:100px;' />";
                } else {
                    return "";
                }
            }
            },
            { id: 'BRAND_REG_DT', header: "注册时间", width: 120  },
            { id: 'IS_HOT', header: "是否热门", width: 90  },
            { id: 'HOT_LEVEL', header: "热门程度", width: 170  }
            ];
            var gridOption1 = getGtOp('myGrid1', colsOption, 'gridbox1', 'BRAND_ID');
            gridOption1.height = "600px";
            gridOption1.pageSize = 500;
            gridOption1.toolbarContent = 'nav goto | pagesize | filter | state';
            gridOption1.autoLoad = true;
            gridOption1.autogtResize = false;
            var myGrid1 = new Sigma.Grid(gridOption1);
            myGrid1.render();
            myGrid1.readOnly = true;
            //            btnDo("btnEdit");
            //            autogtResize("bigbox2", myGrid1);
        };

        function btnDo(sEbtn) {
            GtGrid1Action = sEbtn;
            var opart = GetGtParam("myGrid1");
            if (sEbtn == "mFinder") {
                doFinderGt('myGrid1');
            }
            else if (sEbtn == "btnAdd" || sEbtn == "btnDelete") {
                var sidtem1 = GetGtSelectId('myGrid1');
                if (sidtem1) {
                    opart.AddCell("CHECK_ID", sidtem1);
                    ajaxComm(opart, null, null, 'divCondition'); //调用页面回调，并传入参数
                } else {
                    alert("请先选择记录！");
                }
            }
            else {
                ajaxComm(opart); //调用页面回调，并传入参数
            }
            GtGrid1Action = "";
        };
        function GetGtParam(jqGridID) {
            var _jsParam = new jsonRow();
            if (jqGridID == "myGrid1") {
                GetFormJson("divCondition", _jsParam);
                _jsParam.AddCell("gtGridID", "myGrid1");
                _jsParam.AddCell("findertype", $('#findertype').val());
                _jsParam.AddCell("ACTION", GtGrid1Action);
                //这里可增加传入后台的参数
            } return _jsParam;
        };
    </script> 
</head>
<body>
<input type="hidden" id="findertype" value="0" />
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoDealerHtml("商户管理")%>
        <div id="content" class="content" style=" padding-top: 10px;">
            <div class="page lang-zh-S">
                <div id="mytaobao-panel" class="grid-c2">
                    <div class="col-main" id="J_Col_Main" style="padding-bottom: 0;">
                        <div class="main-wrap">
                            <div id="main-content">
                                <div id="fragment1">

                                
                                <h2 class="h2-single">
                                    <span class="entity" id="J_DeliverTitle">查询条件</span></h2> 
            <div id="divCondition" style="margin: 3px; border-style: solid; border-width: 0px;
                border-color: #C8D2E0; background-color:#fff; padding:3px; font-size:14px;">
                <table border="0" cellpadding="0" cellspacing="0" style="float:right;"> 
                    <tr>
                        <td width="100px" align="right" style=" padding-right:5px;">
                            品牌名称 </td>
                        <td align="right" width="110px">
                            <input class="" id="txtBRAND_NME" type="text" value="" style="width:200px;height:24px;"/>
                        </td>
                        <td align="center" style=" padding-left:20px;">
                           
                        <input class="btn btn-mini btn-danger" id="btnFinder"  type="button" onclick="$('#findertype').val('0'); btnDo('mFinder');return false;" value="查询未使用品牌"/>
                        
                        <input class="btn btn-mini btn-danger" id="mFinder_Sel"  type="button" onclick="$('#findertype').val('1'); btnDo('mFinder');return false;" value="查询已使用品牌"/>
                        <input class="btn btn-mini btn-danger" id="btnAdd"  type="button" onclick="btnDo('btnAdd');return false;" value="获取品牌使用权"/>
                        <input class="btn btn-mini btn-danger" id="btnDelete"  type="button" onclick="btnDo('btnDelete');return false;" value="取消品牌使用权"/>
                        
                                </td>
                    </tr>
                </table>
                <div style="clear:both;"></div>
            </div>

                                  <%--  <div id="divCondition" style="margin: 0px; border-style: solid; border-width: 1px;
                                        padding: 5px; border-color: #C8D2E0;">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <input name="rdDealerType" value="1" type="radio">
                                                        未选择品牌</input>
                                                    <input name="rdDealerType" id="ckbSELECTED_BRAND" checked="checked" value="2" type="radio">已选择品牌</input>
                                                        <span style="width: 30px; margin-left: 30px;"> </span>
                                                </td>
                                                <td align="right">
                                                    <input type="button" onclick="javascript:btnDo('mFinder');return false;" value="查询(F)"
                                                        id="btnFinder" accesskey="F" />
                                                    <input type="button" onclick="javascript:btnDo('btnAdd');return false;" value="添加品牌(A)"
                                                        id="btnConfirm" accesskey="A" />
                                                    <input type="button" onclick="javascript:btnDo('btnDelete');return false;" value="删除品牌(D)"
                                                        id="btnCancel" accesskey="D" />
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>--%>
                                <h2 class="h2-single">
                                    <span class="entity" id="Span1">品牌信息列表</span></h2> 
                                    <div id="bigbox1" style="margin: 0px; margin-top: 2px;">
                                        <div id="gridbox1" style="border: 0px solid #cccccc; background-color: #f3f3f3; padding: 5px;
                                            margin-left: -1px;">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end col-main -->
                    <div class="col-sub" id="J_Col_Sub">
                        <%=new msBsc.WebUi.Code.QtHtmlGet().GetDealerMenu()%>
                    </div>
                    <div style="clear:both;"></div>
                </div>
                <!-- end mytaobao-panel -->
            </div>
        </div>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%>
    </div>
    <!-- foot script -->
</body>
</html>
